﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frm_AddUserInfo.aspx.cs" Inherits="Mod_FlatManger_frm_AddUserInfo" %>

<%@ Register Src="../WebCustomUserControls/CuTextBox.ascx" TagName="CuTextBox" TagPrefix="uc2" %>
<%@ Register Src="../WebCustomUserControls/CuTextSelectBox.ascx" TagName="CuTextSelectBox" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>添加系统用户</title>
        <base target="_self"/>
        <script language="javascript" src="../App_script/index.js"></script>
        <link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>
        <script language="javascript" src="../XMLHttpRequest/xmlhttprequest.js"></script>
    </head>
    <body rightmargin="0" topmargin="0" bottommargin="0" leftmargin="0" onkeydown="FocusChangNext()">
        <form id="AddUserInfo" runat="server">
            <asp:panel ID="panAdd" runat="server" Visible="true">
            <table width="460" height="330" background="../App_Images/b_27.gif" cellpadding="0" cellspacing="0" border="0" class="text">
                <tr>
                    <td>
                        <table width="460" height="230" border="0" cellpadding="0" cellspacing="0" class="text">
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">操作员名称：</td>
                                <td style="width: 191px"><uc1:CuTextSelectBox ID="ctxtName" Width="185" runat="server" ReturnTextIDs="ctxtUsetID|ctxtName" OpenPageUrl="../Mod_QueryFrom/frm_QueryWorker.aspx" Height="16" /></td>
                                <td style="color:Red">*</td>
                                <td><div id="div1" style="color:Red; display:none">操作员名称不能为空！</div><div style="display:none"><uc2:CuTextBox ID="ctxtUsetID" runat="server" /></div></td>
                            </tr>
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">登录名：</td>
                                <td style="width: 191px"><asp:TextBox ID="txtName" runat="server" BorderColor="#7F9DB9" BackColor="transparent" BorderWidth="1px" CssClass="text" Height="18px" Width="185px"/></td>
                                <td style="color:Red">*</td>
                                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" ErrorMessage="登录名不能为空！"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">登录密码：</td>
                                <td style="width: 191px"><asp:TextBox ID="txtPwd1" runat="server" BorderColor="#7F9DB9" BackColor="transparent" BorderWidth="1px" CssClass="text" Height="18px" Width="185px" TextMode="Password"/></td>
                                <td style="color:Red">*</td>
                                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPwd1" ErrorMessage="登录密码不能为空！"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">密码确认：</td>
                                <td style="width: 191px"><asp:TextBox ID="txtPwd2" runat="server" BorderColor="#7F9DB9" BackColor="transparent" BorderWidth="1px" CssClass="text" Height="18px" Width="185px" TextMode="Password"/></td>
                                <td style="color:Red">*</td>
                                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPwd2" ErrorMessage="密码确认不能为空！"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">密码有效期：</td>
                                <td style="width: 191px">
                                    <asp:DropDownList ID="dropPwdOverDate" runat="server" BackColor="transparent" CssClass="text" Width="185px">
                                        <asp:ListItem Selected="True" Value="0">永远有效</asp:ListItem>
                                        <asp:ListItem Value="1">1个月</asp:ListItem>
                                        <asp:ListItem Value="2">3个月</asp:ListItem>
                                        <asp:ListItem Value="3">6个月</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td></td><td>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPwd1" ControlToValidate="txtPwd2" ErrorMessage="两次输入的密码不一致！"></asp:CompareValidator></td>
                            </tr>
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">操作员岗位：</td>
                                <td style="width: 191px">
                                    <asp:DropDownList ID="dropUserStation" runat="server" BackColor="transparent" CssClass="text" Width="185px"></asp:DropDownList>
                                </td>
                                <td></td><td></td>
                            </tr>
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">操作员性质：</td>
                                <td style="width: 191px">
                                    <asp:DropDownList ID="dropUserType" runat="server" BackColor="transparent" CssClass="text" Width="185px">
                                        <asp:ListItem Value="1">系统操作员</asp:ListItem>
                                        <asp:ListItem Value="2">公司领导</asp:ListItem>
                                        <asp:ListItem Value="3">部门经理</asp:ListItem>
                                        <asp:ListItem Value="4" Selected="True">普通员工</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td></td><td></td>
                            </tr>
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">停用状态：</td>
                                <td style="width: 191px">&nbsp;&nbsp;&nbsp;
                                    <asp:RadioButton ID="rbtnBegin" runat="server" CssClass="text" GroupName="is_stop" Text="启 用" Checked="True" />&nbsp;&nbsp;
                                    <asp:RadioButton ID="rbtnEnd" runat="server" CssClass="text" GroupName="is_stop" Text="停 用" />
                                </td>
                                <td></td><td></td>
                            </tr>
                            <tr>
                                <td style="width: 128px; font-weight: bold; color: #183184;" align="right">启用时间：</td>
                                <td style="width: 191px"><uc1:CuTextSelectBox ID="ctxtBeginDate" Width="185" runat="server" TextValueValidateID="0" ReturnTextIDs="ctxtBeginDate" OpenPageUrl="../Mod_QueryFrom/frm_Calendar.aspx" OpenPageHeight="232" OpenPageWidth="227" Height="16" /></td>
                                <td></td><td></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="top"><hr style="width: 400px" color="#c0c4d6" /></td>
                </tr>
                <tr>
                    <td align="center" height="50" valign="top">
                        <asp:Button ID="btnServer" Text="保 存" runat="server" Height="30px" Width="70px" style="cursor:hand" ToolTip="保存" OnClientClick="var txtBoxName=document.getElementById('ctxtName_txtBox');var divMessage=document.getElementById('div1'); if(txtBoxName.value.Trim() == '') {txtBoxName.focus();divMessage.style.display='block';return false;} else {divMessage.style.display='none';}" OnClick="btnServer_Click" onkeydown="this.click()" /> &nbsp; &nbsp;&nbsp;
                        <asp:Button ID="btnCancel" Text="取 消" runat="server" Height="30px" Width="70px" style="cursor:hand" ToolTip="取消" OnClientClick="window.close();" />
                    </td>
                </tr>
            </table>
            </asp:panel>
            <asp:Panel ID="panUpdate" runat="server" Visible="false">
            <table width="460" height="330" background="../App_Images/b_27.gif" cellpadding="0" cellspacing="0" border="0" class="text">
                <tr><td height="50"><input type="hidden" id="hidUserID" runat="server" style="width:0; height:0"></td></tr>
                <tr>
                    <td valign="top">
                        <table width="460" height="120" border="0" cellpadding="0" cellspacing="0" class="text">
                            <tr>
                                <td style="font-weight: bold; color: #183184; width: 146px;" align="right">新密码：</td>
                                <td><asp:TextBox ID="txtNewPwd1" runat="server" BorderColor="#7F9DB9" BackColor="transparent" BorderWidth="1px" CssClass="text" Height="18px" Width="180px" TextMode="Password"/></td>
                            </tr>
                            <tr>
                                <td style="width: 146px"></td>
                                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtNewPwd1" ErrorMessage="新密码不能为空！"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; color: #183184; width: 146px;" align="right">新密码确认：</td>
                                <td><asp:TextBox ID="txtNewPwd2" runat="server" BorderColor="#7F9DB9" BackColor="transparent" BorderWidth="1px" CssClass="text" Height="18px" Width="180px" TextMode="Password"/></td>
                            </tr>
                            <tr>
                                <td style="width: 146px"></td>
                                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtNewPwd2" ErrorMessage="新密码确认不能为空！"></asp:RequiredFieldValidator></td>
                            </tr>
                            <tr>
                                <td style="width: 146px"></td>
                                <td><asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="txtNewPwd1" ControlToValidate="txtNewPwd2" ErrorMessage="两次输入的密码不一致！"></asp:CompareValidator></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="top" height="20"><hr style="width: 400px" color="#c0c4d6" /></td>
                </tr>
                <tr>
                    <td height="40" align="center" valign="top">
                        <asp:Button ID="btnUpdate" Text="修 改" runat="server" Height="30px" Width="70px" style="cursor:hand" ToolTip="保存" onkeydown="this.click()" OnClick="btnUpdate_Click" /> &nbsp; &nbsp;&nbsp;
                        <asp:Button ID="btnUpageCalean" Text="取 消" runat="server" Height="30px" Width="70px" style="cursor:hand" ToolTip="取消" OnClientClick="window.close();" />
                    </td>
                </tr>
                <tr><td height="90"></td></tr>
            </table>
            </asp:Panel>
            <asp:label ID="lblJs" runat="server"/>
        </form>
    </body>
</html>
